#pragma once

#include <valarray>
#include <string>
#include <iostream>

template<class t1,class t2>
class Pair
{
    public:
        t1 year;
        t2 bottle;
        Pair(const t1 & yr,const t2 & bot):year(yr),bottle(bot){}
};

typedef std::valarray<int> ArrayInt;
typedef Pair<ArrayInt,ArrayInt> PairArray;


class Wine
{
private:
    std::string name;
    PairArray pa;
    int years;
public:
    Wine(const char*l,int y,const int yr[],const int bot[]);
    Wine(const char*l,int y);
    // pa.bottle.sum();
    void Show() const;
    std::string Label() const;
    int sum() const;
    void GetBottles();
};
